home *** CD-ROM | disk | FTP | other *** search
/ Aminet 12 / Aminet 12 (1996)(GTI - Schatztruhe)[!][Jun 1996].iso / Aminet / dev / misc / MakePROTO.readme < prev    next >
Encoding:
Text File  |  1996-05-05  |  2.5 KB  |  76 lines

  1. Short:    More flexible replacement for MakeProto (DICE-C)
  2. Author:   tcn@techbase.in-berlin.de (Timo C. Nentwig)
  3. Uploader: tcn@techbase.in-berlin.de (Timo C. Nentwig)
  4. Type:     dev/misc
  5.  
  6.  
  7.   MakePROTO is a simple but useful tool written on a  boring  evening.
  8.   It automatically creates a prototype file for the given C-Source(s).
  9.  
  10.   Is does basicly the same as DICE's  MakeProto  does  but  it's  more
  11.   flexible so you can e.g. use it with SAS/C, too (like I do ...).
  12.  
  13.  
  14.   Usage:
  15.   ¯¯¯¯¯
  16.   You add prototype lines in the considering source(s) beginning  with
  17.   a special keyword, e.g.:
  18.  
  19.                    PROTO BOOL MakeDir (STRPTR name);
  20.  
  21.                                    or
  22.  
  23.                  Prototype BOOL MakeDir (STRPTR name);
  24.  
  25.  
  26.   Now you call MakePROTO with
  27.  
  28.          MakePROTO <file/pattern> PROTOKEYWORD proto/prototype
  29.  
  30.   and MakePROTO prints a useable prototype file listing (use a pipe to
  31.   direct it in a file).
  32.  
  33.  
  34.   SMakeFile:
  35.   ¯¯¯¯¯¯¯¯¯
  36.   [...]
  37.   proto:
  38.       @-delete include/bg_protos.h       >NIL:
  39.       @-echo noline "*E[2m    Making protos ... "
  40.       @-MakePROTO F *.c PK PROTO DT CPP >>include/bg_protos.h
  41.       @-echo "DONE*E[0m"
  42.   [...]
  43.  
  44.  
  45.   Arguments:
  46.   ¯¯¯¯¯¯¯¯¯
  47.   F=FILES/M/A       -> File(s) or pattern(s) to be scanned
  48.   PK=PROTOKEYWORD/K -> Keyword, see above (= "PROTO" or "Prototype")
  49.   DT=DEFINETYPE/S   -> SAS/C does not have it's own reserved word for
  50.                        prototypes like DICE so you might use e.g.
  51.                        "PROTO".
  52.                        This options adds a
  53.                        #define    <your_keyword>    <replacetype>
  54.                        at the beginning of the file.
  55.   CPP/S             -> Produce C++ comments
  56.   STATIC/S          -> For DEFINETYPE: <replacetype> is "static"
  57.                        otherwiese it is "extern".
  58.  
  59.   C-Source is included.
  60.  
  61.  
  62. ============================= Archive contents =============================
  63.  
  64. Original  Packed Ratio    Date     Time    Name
  65. -------- ------- ----- --------- --------  -------------
  66.     7264    4786 34.1% 08-Apr-96 19:25:38 +MakePROTO
  67.     8333    2450 70.5% 08-Apr-96 19:25:14 +MakePROTO.c
  68.     1667     884 46.9% 08-Apr-96 12:29:12 +MakePROTO.info
  69.       72      66  8.3% 08-Apr-96 19:25:36 +MakePROTO.lnk
  70.     1888    1218 35.4% 08-Apr-96 19:25:34 +MakePROTO.o
  71.     1833     862 52.9% 08-Apr-96 19:19:40 +MakePROTO.readme
  72.      188     136 27.6% 08-Apr-96 12:28:18 +smakefile
  73.     1574    1098 30.2% 08-Apr-96 12:28:18 +smakefile.info
  74. -------- ------- ----- --------- --------
  75.    22819   11500 49.6% 16-Apr-96 01:57:22   8 files
  76.